package com.advert.model.support;

import com.advert.util.Sortable;

import javax.persistence.*;

@Entity
@Table(name = "s_region")
@NamedQueries(
@NamedQuery(name = "RegionEntity.getAll", query = "select r from RegionEntity r")
)
public class RegionEntity implements Sortable {
    @Id
    @Column(name = "code", insertable = false, updatable = false)
    private String code;

    @Column(name = "name", insertable = false, updatable = false)
    private String name;


    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }


    public String getSortingValue() {
        return name;
    }
}
